package io.github.wppli.infrastructure.persistent.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品SKU表
 * </p>
 *
 * @author lijiaqiang@ljq1024.cc
 * @since 2025-03-12
 */
@Getter
@Setter
@TableName("product_sku")
public class ProductSku implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sku_id", type = IdType.AUTO)
    private Long skuId;

    @TableField("product_id")
    private Long productId;


    @TableField("product_name")
    private String productName;


    /**
     * 规格组合（如：{"颜色":"红","尺寸":"XL"}）
     */
    @TableField("specs")
    private String specs;

    @TableField("price")
    private BigDecimal price;

    @TableField("stock")
    private Integer stock;

    /**
     * SKU专属图片
     */
    @TableField("image")
    private String image;


}
